package com.lagou.edu.wwy.demo.controller;

import com.lagou.edu.wwy.demo.service.AccountService;
import com.lagou.edu.wwy.mvcframework.annotation.LagouAutowired;
import com.lagou.edu.wwy.mvcframework.annotation.LagouController;
import com.lagou.edu.wwy.mvcframework.annotation.LagouRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@LagouController("accountController")
@LagouRequestMapping("account")
public class AccountController {
    @LagouAutowired
    private AccountService accountService;
    @LagouRequestMapping("get")
    public String get(String name, HttpServletRequest request, HttpServletResponse response, HttpSession session){
        return accountService.get(name);
    }
    @LagouRequestMapping("getVoid")
    public void getVoid(String name, HttpServletRequest request, HttpServletResponse response, HttpSession session){
        System.out.println("getVoid");
    }
}
